package com.company;


public class Person {
    private  int p_Age;
    private String id;
    private  String p_name;

    public Person() {
    }

    public Person(String id) {
        this.id = id;
    }

    public void driveTransport(AirTransport airTransport){
        System.out.println("driving " +airTransport.getId() );
    }
    public void driveTransport(LandTransport landTransport){
        System.out.println("driving " +landTransport.getId() );
    }
    public void driveTransport(MaritimeMeansOfTransport maritimeMeansOfTransport){
        System.out.println("driving " +maritimeMeansOfTransport.getId() );
    }

    public int getP_Age() {
        return p_Age;
    }

    public void setP_Age(int p_Age) {
        this.p_Age = p_Age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }
}
